package net.techwatch.gwt.mvp.client;

import net.techwatch.gwt.mvp.client.service.Action;
import net.techwatch.gwt.mvp.client.service.GreetingServiceAsync;
import net.techwatch.gwt.mvp.client.service.Response;

import com.google.gwt.user.client.rpc.AsyncCallback;

public class MockGreetingServiceService implements GreetingServiceAsync {

	Action<?> lastAction;
	AsyncCallback<?> lastCallback;
	
	@Override
	public <T extends Response> void execute(Action<T> action,
			AsyncCallback<T> callback) {
		lastAction = action;
		lastCallback = callback;
	}

}
